{*include file="template/admin_head.htm"*}

<table id="containtable" cellspacing="0" cellpadding="0" class="{*$cf_controller*}">
    <tr>
        <td width="1979" valign="top" bgcolor="#FFFFFF">


            <div class="wrapper pr_8">
                {*if $cf_action=='detail'*}

                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">记录詳情</span>                            </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                            <tbody>
                                <tr>
                                    <td width="15%" align="right">类型:</td>
                                    <td width="35%" align="left">{*assign var=type value=$row.exam_type *}{*$cf_info_var_common.exam_type.$type*}</td>
                                    <td width="17%" align="right">创建时间:</td>
                                    <td width="33%" align="left">{*$row.exam_begin*}</td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="pt_8" align="center">
                            <input type="button" name="back" value="返 回" onclick="window.history.back()" class="myinput" />
                        </div>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8"></div>
                </div>

                {*else*}

               
                <div class="pannel">
                    <div class="pl"></div>
                    <div class="pr"></div>
                    <div class="pc1">
                        <form action="" method="get" id="search_form" name="search_form">
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <div class="pt">代理商账号:
                               	 <input type="text" size="12" id="skey" name="skey" class="tet" value="{*$skey*}" />                               
                                &nbsp;代理商ID:
                                <input type="text" size="12" id="skey2" name="skey2" class="tet" value="{*$skey2*}" />
                                &nbsp;&nbsp;
                                记录日期:
                                <input name="date" type="text" id="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true})" size="15" value="{*$date*}" />
                                &nbsp;
                                <input name="ltype" type="hidden" id="ltype"  size="15" value="{*$ltype*}" />
                                <input name="id" type="hidden" id="id"  size="15" value="{*$id*}" />
								分类:{*html_options name=stype id=stype options=$type selected=$smarty.get.stype*}
                                <input type="image" src="public/images/admin/icon_search_btn.gif">
                            </div>
                        </form>
                    </div>
                </div>
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">现金记录</span>
                        </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
<!--                        <div class="bq clearfix">
                            <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&self=0" class="{*if !$self*}active{*/if*}">所 有 </a></b><b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&self=1" class="{*if $self==1*}active{*/if*}" >成 功</a></b> <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&amp;self=2" class="{*if $self==2*}active{*/if*}" >失 败</a></b></div>-->
                        <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
                            <input name="act" type="hidden" value="all" />
                            <input name="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <table width="100%" class="tbl tbl_nbr">
                                <thead>
                                    <tr class="thd">
                                        <td width="12%" align="center" class="thr">ID</td>
                                        <td width="16%" align="center" class="thr">代理商</td>
                                        <td width="13%" align="center" class="thr">金额</td>
                                        <td width="12%" align="center" class="thr">类型</td>
                                        <td width="29%" align="center" class="thr">说明</td>
                                        <td width="18%" align="center" class="thr">创建时间</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    {*foreach name=list item=item from=$data_ary*}
     								{*assign var=type value=$item.log_type *}


                                    <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                        <td align="center">{*$item.log_id*}</td>
                                        <td align="center"><a href="javascript:void(0)" title="查看詳情" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_sp.htm?id={*$item.log_spid*}','查看代理家詳情',650,450)})" class="edit" >{*$item.log_sp*}</a></td>
                                        <td align="center">{*$item.log_money*}</td>
                                        <td align="center">{*$cf_info_var_common.sp_money_log.$type*}</td>
                                        <td align="left">{*$item.log_content*}{*if $type=='withdraw'*}&nbsp;&nbsp;<a href="/admin/withdraw-act_withdraw_id_{*$item['log_spid']*}.htm?dpt={*$cf_dpt*}" class="edit">详情</a>{*/if*}</td>
                                        <td align="center">{*$item.log_create_time*}</td>
                                    </tr>

                                    {*/foreach*}


                                    <tr class="tft">
                                        <td colspan="6" style="padding:0;">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td width="7%" align="center" style="border:0;padding:0;">合计:<span class="blue">{*$sum*}</span></td>
                                                    <td width="15%" align="center" style="border:0;padding:0;">
                                                        减少:<span class="red">{*$minus_score*}</span>&nbsp;&nbsp;&nbsp;&nbsp;增加:<span class="green">{*$plus_score*}</span>
                                                    </td>
                                                    <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
                                                </tr>
                                            </table>                                </td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>

                {*/if*}
            </div>        </td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}